/**
 * @description:
 * @file: listen.ts
 * @author: Evan
 * @date: 2025.05.15 10:58:14
 * @week: 周四
 * @version: V
 */

import { Scene } from '../class'
import Emitter from '../emitter'

export const onListen = (scene: InstanceType<typeof Scene>) => {
  // 漫游
  // Emitter.on('camera:roam', () => scene?.toggleRoam())
  // 巡航
  Emitter.on('camera:cruise', () => scene?.toggleCruise())
  // 重置视角
  Emitter.on('camera:reset', () => scene?.controlReset())

  // 场景坐标
  Emitter.on('scene:pos', () => scene?.getPosition())
  Emitter.on('scene:test', () => scene?.openTest())
}
